<!DOCTYPE html>
<title>Chrome crash bug 346264227</title>
<link rel="help" href="https://crbug.com/346264227">
<style>
  @container (width = 0px) {
    #inner {
      display: none;
    }
  }
</style>
<div style="container-type: inline-size">
  <div id="inner" style="container-type: inline-size; display: none"><span></span></div>
</div>
<script>
  document.body.offsetTop;
  document.body.style.width = 0;
  inner.style.display = "";
  document.body.offsetTop;
</script>
